Ext.onReady(function(){
	Ext.get('buttonAlter').on({
		'click':{
			fn:function(){
				Ext.Msg.alert('状态', '成功');		
			}
		}
	});
	Ext.get('buttonPrompt').on({
		'click':{
			fn:function(){
				Ext.Msg.prompt('名称', '请输入名称:', function(btn, text){
				    if (btn == 'ok'){
						
				    }
				});
			}
		}
	});
	Ext.get('buttonCommon').on({
		'click':{
			fn:function(){
				Ext.Msg.show({
				   title:'Save Changes?',
				   msg: 'You are closing a tab that has unsaved changes. Would you like to save your changes?',
				   buttons: Ext.Msg.YESNOCANCEL,
				   animEl: 'elId',
				   icon: Ext.MessageBox.QUESTION
				});
			}
		}
	});
})